package com.cskaoyan.wordmemorize.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cskaoyan.wordmemorize.dao.entity.VocCategoryDO;
import com.cskaoyan.wordmemorize.dto.admin.DeleteBookCategoryOperateDTO;
import com.cskaoyan.wordmemorize.dto.admin.PageDTO;
import com.cskaoyan.wordmemorize.dto.admin.VocCategoryDTO;
import com.cskaoyan.wordmemorize.request.BatchDeleteCommand;
import com.cskaoyan.wordmemorize.request.PageRequest;
import com.cskaoyan.wordmemorize.request.VocCategoryCommand;

import java.util.List;

/**
 * @author 顾海龙
 * @version 1.0
 */
public interface BookCategoryService extends IService<VocCategoryDO> {

   //获取指定书籍类目
   VocCategoryDTO getCategory(String categoryId);

   //添加书籍类名
   void addCategory(VocCategoryDO vocCategoryDO);

   //修改书籍类目
   void updateCategory(VocCategoryDO vocCategoryDO);

   //分页查询书籍类目
   PageDTO<VocCategoryDTO> getCategoryList(PageRequest pageRequest);

   //删除指定书籍类目
   void deleteCategory(String categoryId);

   //批量删除书籍类目
   void deleteCategoryByList(List<String> ids);
}
